@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 255, 255, 255;
  --background-end-rgb: 245, 245, 245;
  --primary-color: 40, 167, 69;
  --secondary-color: 0, 123, 255;
  --accent-color: 255, 193, 7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 30, 30, 30;
    --background-end-rgb: 20, 20, 20;
    --primary-color: 76, 175, 80;
    --secondary-color: 33, 150, 243;
    --accent-color: 255, 193, 7;
  }
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

/* Monaco Editor Styles */
.monaco-editor {
  padding: 0.5rem;
  border-radius: 0.375rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(var(--background-end-rgb), 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--foreground-rgb), 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--foreground-rgb), 0.3);
}
